<template>
  <div class="seckill">
    <!-- <h1>秒杀</h1> -->
        <van-nav-bar  left-arrow :border="false">
            <template #left>
                <!-- <van-icon name="search" size="18" /> -->
                <div class="ms">    
                    <van-icon name="arrow-left" @click="onTz" />
                    <span>超级秒杀</span>
                </div>
                    <div class="so">
                        <img src="../image/miaosharukou_icon_sousuo.png" alt="">
                        <input type="text" @click="onSearch" placeholder="洗面奶">
                        <button>搜索</button>
                    </div>
            </template>
        </van-nav-bar>
            <div class="main">
                        <h1>“每晚8点 拼手速抢狂补”</h1>
                        <img src="../image/miaosharukou_icon_banner.png" alt="">
            </div>
            <div class="countDown">
                <div class="m">
                    <h2>领每日红包</h2>
                    <img src="../image/miaosharukou_icon_hongbao.png" alt="">
                </div>
                <div class="m">
                    <p>热卖中</p>
                    <span>不能错过</span>
                </div>
                <div class="m purchase">
                    <p>20:00</p>
                    <span>抢购中</span>
                </div>
                <div class="m">
                    <p>22:00</p>
                    <span>即将开始</span>
                </div>
                <div class="m">
                    <p>00:00</p>
                    <span>即将开始</span>
                </div>
                <div class="m">
                    <p>06:00</p>
                    <span>即将开始</span>
                </div>
            </div>
            <div class="commodity">
                <img src="../image/miaosharukou_icon_ qianggou.png" alt="">
                <div class="commodity-right">
                    <h1>珂润油脂保湿乳液120ml轻盈…</h1>
                    <van-progress :percentage="30" stroke-width="20" color="red" />
                    <div class="commodity-right-bottom">
                        <div>
                            <h2>¥145</h2>
                            <p>预估到手价</p>
                        </div>
                            <button @click="Snapped">抢购</button>
                    </div>
                </div>
            </div>
            <div class="commodity">
                <img src="../image/miaosharukou_icon_yilisier.png" alt="">
                <div class="commodity-right">
                    <h1>怡丽丝尔银管防晒乳SPF50+…</h1>
                    <van-progress :percentage="60" stroke-width="20" color="red" />
                    <div class="commodity-right-bottom">
                        <div>
                            <h2>¥98</h2>
                            <p>预估到手价</p>
                        </div>
                            <button>抢购</button>
                    </div>
                </div>
            </div>
            <div class="commodity">
                <img src="../image/miaosharukou_icon_lifuquan.png" alt="">
                <div class="commodity-right">
                    <h1>理肤泉b5多效修复乳霜40ml…</h1>
                    <van-progress :percentage="80" stroke-width="20" color="red" />
                    <div class="commodity-right-bottom">
                        <div>
                            <h2>¥99</h2>
                            <p>预估到手价</p>
                        </div>
                            <button>抢购</button>
                    </div>
                </div>
            </div>
  </div>
</template>

<script>
export default {
    data(){
    return{
        value:""
    }
    },
    methods:{
        onSearch(){
            // this.$router.push({path:'/search'})
            this.$router.push({name:"search"})

        },
        onTz(){
            this.$router.push({name:"index"})
        },
        Snapped(){
            this.$router.push({name:"snapped"})
        }
        
    }
}
</script>

<style scoped>
*{
    margin: 0;
    padding: 0;
}
.seckill{
    box-sizing: border-box;
    width: 750px;
    height: 100vh;
    background: linear-gradient(360deg, #F5F5F5 0%, #FFFFFF 68%, #F61C1B 100%);
    border-radius: 0px 0px 0px 0px;
    opacity: 1;
    padding-top: 104px;
}
.van-nav-bar{
    /* border-bottom: 3px solid #F61C1B; */
    background: rgba(0, 0, 255, 0);
}
/* 搜索框 */
.so{
    width: 341px;
    margin-left: 140px;
    position: relative;
    /* border:  1px solid blue; */
    height: 62px;
    /* background: black; */
    
}
.so input{
    width: 341px;
    height: 62px;
    background: #FFFFFF;
    border-radius: 30px 30px 30px 30px;
    opacity: 0.87; 
    border: none;
    outline: none;
    text-indent: 55px;
}
.so img{
    position: absolute;
    top: 21px;
    left: 22px;
}
.so button{
    width: 84px;
    height: 42px;
    background: #37383A;
    border-radius: 20px 20px 20px 20px;
    opacity: 1;
    font-size: 22px;
    font-family: PingFangSC-Medium-, PingFangSC-Medium;
    font-weight: normal;
    color: #FFFFFF;
    line-height: 26px;
    border: none;
    outline: none;
    position: absolute;
    right: 13px;
    top: 10px;
}
/* 秒杀按钮 */
.ms span{
    width: 160px;
    height: 50px;
    font-size: 36px;
    font-family: PingFangSC-Medium-, PingFangSC-Medium;
    font-weight: normal;
    color: #FEFEFE;
    line-height: 43px;
}
.ms .van-icon-arrow-left{
    font-size: 32px;
    color: #fff;
    margin-right: 10px;
}
/* 内容 */
.main{
    /* border: 1px solid blue; */
    margin-top: 40px;
}
.main h1{
    /* border: 1px solid blue; */
    margin-left: 105px;
    width: 600px;
    height: 67px;
    font-size: 48px;
    font-family: PingFangSC-Medium-, PingFangSC-Medium;
    font-weight: normal;
    color: #FFFFFF;
    line-height: 58px;
    text-shadow: 0px 4px 10px rgba(250,2,2,0.2100);

}
.main img{
    width: 700px;
    height: 124px;
    margin-top: 33px;
    margin-left: 27px;
}
/* 倒计时 */
.countDown{
    width: 698px;
    height: 130px;
    background: #FCF9F9;
    border-radius: 48px 48px 48px 48px;
    /* opacity: 1; */
    display: flex;
    justify-content: space-around;
    margin-left: 27px;
    margin-top: 67px;
    margin-bottom: 30px;

}
.countDown .m{
    /* flex: 1; */
    width: 200px;
    height: 130px;
    /* border: 1px solid red; */
    text-align: center;
    /* line-height: 130px; */
}
.m p{
font-size: 24px;
font-family: PingFangSC-Semibold-, PingFangSC-Semibold;
font-weight: bold;
color: #0B0B0B;
line-height: 29px;
margin-top: 30px;
margin-bottom: 15px;
}
.m span{
font-size: 20px;
font-family: PingFangSC-Regular-, PingFangSC-Regular;
font-weight: normal;
color: #666666;
line-height: 24px;
}
.m img{
    margin-top: 20px;
}
.m h2{
    font-size: 20px;
    font-family: PingFangSC-Semibold-, PingFangSC-Semibold;
    font-weight: normal;
    color: #FFFFFF;
    line-height: 44px;
    width: 116px;
    height: 44px;
    background: linear-gradient(360deg, #F6EBB8 0%, #ED4A34 100%);
    opacity: 1;
    position: absolute;
    border-radius: 20px;
}
.countDown .purchase p{
    color: #EF1818;
}
.countDown .purchase span{
    display: block;
    width: 76px;
    height: 23px;
    line-height: 23px;
    background: #EF1818;
    border-radius: 11px 11px 11px 11px;
    opacity: 1;
    color: #fff;
    margin-left: 20px;
}
/* 商品列表 */
.commodity{
    width: 702px;
height: 224px;
background: #FFFFFF;
box-shadow: 0px 4px 10px 1px rgba(0,0,0,0.1000);
border-radius: 10px 10px 10px 10px;
opacity: 1;
margin-left: 25px;
margin-bottom: 68px;
display: flex;
justify-content: space-around;
}
.commodity-right h1{
    width: 466px;
    height: 48px;
    font-size: 32px;
    font-family: PingFangSC-Regular-, PingFangSC-Regular;
    font-weight: normal;
    color: #242323;
    line-height: 41px;
    margin-bottom: 14px;
}
.commodity-right .van-progress{
    width: 320px;
    border-radius: 20px;
}
.commodity-right-bottom{
    display: flex;
    justify-content: space-between;
    margin-top: 50px;
    align-items: center;
}
.commodity-right-bottom h2{
    width: 72px;
    height: 50px;
    font-size: 36px;
    font-family: PingFangSC-Regular-, PingFangSC-Regular;
    font-weight: normal;
    color: #D90312;
    line-height: 43px;
}
.commodity-right-bottom p{
    width: 100px;
height: 28px;
font-size: 20px;
font-family: PingFangSC-Regular-, PingFangSC-Regular;
font-weight: normal;
color: #999999;
line-height: 24px;
}
.commodity-right-bottom button{
    width: 80px;
    height: 48px;
    background: #D80312;
    border-radius: 8px 8px 8px 8px;
    opacity: 1;
    color: #fff;
    line-height: 48px;
    border: none;
    outline: none;
    margin-right: 20px;
}
</style>